home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4961 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: news.halcyon.com!usenet
  2. From: normanb@halcyon.com (Norm Bryar)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Problems calling DLLs
  5. Date: Thu, 01 Feb 1996 16:25:02 GMT
  6. Organization: Northwest Nexus Inc.
  7. Message-ID: <4eqpg0$c9q@news.halcyon.com>
  8. References: <4enopb$hd8@kuikka.inet.fi>
  9. NNTP-Posting-Host: blv-pm2-ip25.halcyon.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Experiment with calling conventions, perhaps?
  13. Try __cdecl to force no decoration at all; __stdcall to append @N,
  14. where N is the byte-count of the argument list.  
  15.  
  16. If you have any library Toolbook does recognize, by all means, 
  17. dumpbin /exports or dumpbin /symbolson the thing and look at how the
  18. names are represented.  (This is a Visual C++ 2.x/4.0 util for Win32,
  19. probably Borland will have it or their own exehdr util or something).
  20.  
  21. Hope this helps.
  22.                     --Norm
  23.  
  24. asko.juvonen@caiproint.inet.fi (asko juvonen) wrote:
  25.  
  26. >I have made some DLLs with Turbo C++ for Windows 4.5, but calling
  27. >programs are unable to find any functions in the DLLs, unless the
  28. >corresponding import library is linked to the program, after which
  29. >everything works fine. The problem is, the DLLs are ment to be used
  30. >with a Toolbook program, and AFAIK there is no way to link the
  31. >implibs with Toolbook. What can I do to make Toolbook see the
  32. >functions in my DLLs? Is there some particular style I should use
  33. >when defining functions? I currently use the extern "C" style,
  34. >resulting in case sensitive function names starting with an
  35. >underscore (no C++ name mangling).
  36.  
  37.  
  38.